package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.ReturnMapper;
import com.atguigu.jxc.service.ReturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ReturnServiceImpl implements ReturnService {
    @Autowired
    private ReturnMapper returnMapper;
    @Override
    public List<Map> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName) {
        List<Map> count = returnMapper.count(sTime,eTime,goodsTypeId,codeOrName);
        return count;
    }

    @Override
    public List<Map> customerReturnCount(String sTime, String eTime, Integer goodsTypeId, String codeOrName) {
        List<Map> count = returnMapper.customerReturnCount(sTime,eTime,goodsTypeId,codeOrName);
        return count;
    }
}
